let mix = require('laravel-mix')

mix
  .js('src/index.js', './dist/xbpicker.js') //配置页的js
  .webpackConfig({
    output: {
      library: 'xbpicker',
      libraryTarget: 'umd',
      umdNamedDefine: true,
    },
    externals: {
      vue: {
        commonjs: 'vue',
        commonjs2: 'vue',
        amd: 'vue',
        root: 'Vue'
      },
      moment:"moment",rome:"rome"
    },
  })
